import request from '@/utils/request'

// 查询金币商城购买记录列表
export function listMallRecord(data) {
  return request({
    url: '/admin/mallRecord/pageList',
    method: 'post',
    data: data
  })
}

// 查询金币商城购买记录详细
export function getMallRecord(id) {
  return request({
    url: '/admin/mallRecord/query/' + id,
    method: 'get'
  })
}

// 新增金币商城购买记录
export function addMallRecord(data) {
  return request({
    url: '/admin/mallRecord/add',
    method: 'post',
    data: data
  })
}

// 修改金币商城购买记录
export function updateMallRecord(data) {
  return request({
    url: '/admin/mallRecord/update',
    method: 'post',
    data: data
  })
}

// 删除金币商城购买记录
export function delMallRecord(id) {
  return request({
    url: '/admin/mallRecord/delete/' + id,
    method: 'delete'
  })
}

// 导出金币商城购买记录
export function exportMallRecord(query) {
  return request({
    url: '/admin/mallRecord/export',
    method: 'get',
    params: query
  })
}
